package com.yuyou.tas.report.service.impl;

import java.util.Date;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.yuyou.tas.report.mapper.ExamModelReportScoreConfigMapper;
import com.yuyou.tas.report.service.IExamModelReportScoreConfigService;
import com.yuyou.tas.service.api.report.entity.ExamModelReportScoreConfig;
import com.yuyou.tas.util.tool.Sequence;

@Service
public class ExamModelReportScoreConfigServiceImpl implements IExamModelReportScoreConfigService{

	@Autowired
	private ExamModelReportScoreConfigMapper mapper;
	
	@Override
	public int deleteByPrimaryKey(Long id) {
		return mapper.deleteByPrimaryKey(id);
	}

	@Override
	public int insert(ExamModelReportScoreConfig record) {
		record.setId(Sequence.getSequence().nextId());
		record.setCreateTime(new Date());
		return mapper.insert(record);
	}

	@Override
	public ExamModelReportScoreConfig selectByPrimaryKey(Long id) {
		return mapper.selectByPrimaryKey(id);
	}

	@Override
	public int updateByPrimaryKeySelective(ExamModelReportScoreConfig record) {
		return mapper.updateByPrimaryKeySelective(record);
	}

	@Override
	public ExamModelReportScoreConfig selectByBsId(Long authOrganizationId,
			Long baseSectionId) {
		return mapper.selectByBsId(authOrganizationId, baseSectionId);
	}

    
}